<%@ page import="java.time.LocalTime" %><%--
  Created by IntelliJ IDEA.
  User: 17126
  Date: 2022/3/16
  Time: 11:06
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>早上好</title>
</head>
<body>
<% LocalTime time = LocalTime.now();
    int hour = time.getHour();%>
<p>现在时间区间为:<%= hour%>点,早上好!</p>
</body>
</html>
